package top.jianx.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 字符串返回页面测试Controller
 * @RestController = 以下两个的合体(@RestController头上注解说明一切不服)
 *      @Controller
 *      @ResponseBody
 */
@RestController
@RequestMapping("/test")
public class PageController {

    @GetMapping(value = "/1")
    public String testMsg(){
        return "test";
    }
}
